//
//  ForRefundMiddelCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2018/1/16.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "ForRefundMiddelCell.h"

@interface ForRefundMiddelCell ()
@property (weak, nonatomic) IBOutlet UILabel *leftLabel;

@property (weak, nonatomic) IBOutlet UILabel *rightLable;
@property (weak, nonatomic) IBOutlet UILabel *starLabel;

@end

@implementation ForRefundMiddelCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.leftLabel.font = MYFONT(14);
    
    self.rightLable.font = MYFONT(14);
    
    self.rightLable.text = @"";
    
    self.starLabel.font = MYFONT(12);
    
    
    // Initialization code
}

- (void)setModel:(ApplyRefundParmModel *)model{
    _model = model;
    
    if (_index.row == 1) {
        
        self.leftLabel.text = @"处理方式 :";
        
        if (_model.refund_type.length > 0) {
            self.rightLable.text = _model.refund_type;
        }
        
    } else {
        
        self.leftLabel.text = @"退款原因 :";

        if (_model.refund_reason.length > 0) {
            
            self.rightLable.text = _model.refund_reason;
        }
        
    }
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
